package com.suishoupai.xmb.dao;

import com.suishoupai.xmb.entity.CutUserSale;
import com.suishoupai.xmb.entity.UserSale;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by caojian on 2017/3/23.
 */
public interface CutUserSaleMapper {
    List<UserSale> selectAll();

    List<UserSale> selectSaleListByXiaoquId(@Param("xiaoquId") long xiaoquId);

    int updateByPrimaryKeySelective(UserSale userSale);

    CutUserSale selectByPrimaryKey(@Param("userId") long userId);

    int addCategoryNumber(@Param("userId") long userId,@Param("max") int max);

    int reduceCategoryNumber(@Param("userId") long userId);

    int addSalesVolume(@Param("userId") long userId);

    int addScore(@Param("userId") long userId,@Param("score") int score);

    int addDeliveryDiscountNumber(@Param("userId") long userId,@Param("max") int max);

    int reduceDeliveryDiscountNumber(@Param("userId") long userId);

}
